import {
	requestNoAuth,
	request
} from '../../lib/java110/java110Request.js';
import url from '../../constant/url.js';
/**
 * 报修评价
 * @param {Object} _data 评价内容
 */
export function appraise(_data) {
	return new Promise((resolve, reject) => {
		let moreRooms = [];
		request({
			url: url.saveShopAppraise,
			method: "POST",
			data: _data, //动态数据
			success: function(res) {
				let _data = res.data;
				if (_data.code == 0) {
					resolve(_data);
					return ;
				}
				reject(_data.msg);
			},
			fail: function(e) {
				reject(e);
			}
		});
	})
}
